package com.ep.thirdPlatformProject;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.retry.annotation.EnableRetry;
import org.springframework.web.socket.config.annotation.EnableWebSocket;

import java.security.Security;

@EnableWebSocket
@SpringBootApplication
@EnableRetry
@EnableConfigurationProperties
public class ThirdPlatformProjectApplication {

    public static void main(String[] args) {
        // 项目连接sql server, 解除禁用tlsV1的过时算法
        Security.setProperty("jdk.tls.disabledAlgorithms","SSLv3, " +
                " RC4, TLSv1.1, DES, MD5withRSA, DH keySize < 1024, EC keySize < 224, 3DES_EDE_CBC, anon, NULL");
        String disabledAlgorithms = Security.getProperty("jdk.tls.disabledAlgorithms");
        System.out.println("Disabled Algorithms: " + disabledAlgorithms);
        SpringApplication.run(ThirdPlatformProjectApplication.class, args);
    }

}
